package com.iqiao.platform.model;

import com.iqiao.common.base.BaseModel;
import com.iqiao.common.web.result.JsonResult;

import java.util.Map;
import java.util.Set;

/**
 * Created by flt on 2017/11/9.
 */
public class UserOpLog extends BaseModel {

    private Long userId; //用户ID
    private String userAgent;// 请求设备头
    private String ip;//请求IP
    private String method;//方法名
    private String url;//请求URL
    private String params;//请求参数
    private Integer status; // 状态码
    private Integer resultCode;//返回代码
    private String resultMsg;//返回信息
    private Long costMs;//耗时，单位：毫秒
    private String result; //返回结果

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getResultCode() {
        return resultCode;
    }

    public void setResultCode(Integer resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultMsg() {
        return resultMsg;
    }

    public void setResultMsg(String resultMsg) {
        this.resultMsg = resultMsg;
    }

    public Long getCostMs() {
        return costMs;
    }

    public void setCostMs(Long costMs) {
        this.costMs = costMs;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @Override
    public String toString() {
        return "UserOpLog{" +
                "id=" + id +
                ", userId=" + userId +
                ", userAgent='" + userAgent + '\'' +
                ", ip='" + ip + '\'' +
                ", method='" + method + '\'' +
                ", url='" + url + '\'' +
                ", params='" + params + '\'' +
                ", status='" + status +
                ", resultCode='" + resultCode + '\'' +
                ", resultMsg='" + resultMsg + '\'' +
                ", costMs=" + costMs +
                ", result='" + result + '\'' +
                ", createBy=" + createBy +
                ", modifyBy=" + modifyBy +
                ", ctime=" + ctime +
                ", mtime=" + mtime +
                ", isDelete=" + isDelete +
                '}';
    }
}
